package com.zzc.emotisenseclassroom.domain.upload.service;

import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * Copyright Zzc
 * FileName: FileUploadService
 * Author:   Zzc
 * Date:     2024/5/513:59
 * Description:文件上传servie接口
 * hISTORY:
 * <author>  <time>     <version>    <desc>
 * 作者姓名   修改时间       版本号       描述
 * Zzc                   1.0.0
 */
public interface FileUploadService {
    /**
     * 这里的路径是vue项目存放静态资源图片的路径
     */
    public static final String IMAGE_FILE_PATH = "D:\\GraduationDesign\\openSourcecode\\graduationDesign\\EmotiSenseClassroomVue\\static\\img";

    public static final String VIDEO_FILE_PATH = "D:\\视频";

    public static final String PATH_SEPARATOR = "\\";

    /**
     * 上传图片仅支持png、jpg格式
     * @param file 文件
     * @return 文件vue项目的相对路径
     */
    String uploadImage(MultipartFile file) throws IOException;

    String uploadVideo(MultipartFile file) throws IOException;
}
